﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using System.IO;

namespace hse_2013_test_dima_sasha
{
    public partial class Form6 : Form
    {
        public Form6()
        {
            InitializeComponent();
        }

        private void Form6_Load(object sender, EventArgs e)
        {
            string[] results = new string[4];
            StreamReader sr;
            if (Data.SubjectID == 1)
            {
                sr = new StreamReader(".../.../results-engl.txt", Encoding.Default);
            }
            else
            {
                sr = new StreamReader(".../.../results-econ.txt", Encoding.Default);
            }
            while (!sr.EndOfStream)
            {
                string str = sr.ReadLine();
                results = str.Split(',');
                dataGridView1.Rows.Add(results[0], int.Parse(results[1]) + "%", int.Parse(results[2]),
                                       int.Parse(results[3]));
            }
        }
    }
}
